<?php

class FDetailRow
{
    
    private $mode;
    private $data;
    
    const VIEW_ROW = 'view';
    const NEW_ROW = 'new';
    const DEL_ROW = 'del';    
    
    public function __construct($mode, $data)
    {
        $this->setMode($mode);
        $this->setData($data);
    }

    public function getMode() {
        return $this->mode;
    }

    public function setMode($mode) {
        $this->mode = $mode;
    }

    public function getData() {
        return $this->data;
    }

    public function setData($data) {
        $this->data = $data;
    }
    
}

?>
